package com.ui.basic.command.masterdata;

import java.util.List;

import org.springmodules.validation.bean.conf.loader.annotation.handler.Length;
import org.springmodules.validation.bean.conf.loader.annotation.handler.NotBlank;
import org.springmodules.validation.bean.conf.loader.annotation.handler.NotNull;

import com.common.basic.base.BaseCommand;
import com.common.basic.util.ComboValue;
import com.ui.basic.ibatis.model.masterdata.TblMBankacc;

public class CommandBankAcc extends BaseCommand implements java.io.Serializable {

	private static final long serialVersionUID = -386545288524733778L;

	private Long id;

	@NotBlank
	@Length(max = 5)
	private String accCode;

	@NotBlank
	@Length(max = 20)
	private String accNumber;

	@NotBlank
	@Length(max = 50)
	private String ownerName;

	@NotNull
	private Long bankId;

	private List<ComboValue> bankList;

	@NotNull
	private Long countryId;

	private List<ComboValue> countryList;

	@NotNull
	private Long currId;

	private List<ComboValue> currencyList;

	public void setId(Long id) {
		this.id = id;
	}

	public Long getId() {
		return id;
	}

	public String getAccCode() {
		return accCode;
	}

	public void setAccCode(String accCode) {
		this.accCode = accCode;
	}

	public String getAccNumber() {
		return accNumber;
	}

	public void setAccNumber(String accNumber) {
		this.accNumber = accNumber;
	}

	public String getOwnerName() {
		return ownerName;
	}

	public void setOwnerName(String ownerName) {
		this.ownerName = ownerName;
	}

	public Long getBankId() {
		return bankId;
	}

	public void setBankId(Long bankId) {
		this.bankId = bankId;
	}

	public Long getCountryId() {
		return countryId;
	}

	public void setCountryId(Long countryId) {
		this.countryId = countryId;
	}

	public Long getCurrId() {
		return currId;
	}

	public void setCurrId(Long currId) {
		this.currId = currId;
	}

	public List<ComboValue> getBankList() {
		return bankList;
	}

	public void setBankList(List<ComboValue> bankList) {
		this.bankList = bankList;
	}

	public List<ComboValue> getCountryList() {
		return countryList;
	}

	public void setCountryList(List<ComboValue> countryList) {
		this.countryList = countryList;
	}

	public List<ComboValue> getCurrencyList() {
		return currencyList;
	}

	public void setCurrencyList(List<ComboValue> currencyList) {
		this.currencyList = currencyList;
	}

	public void setProperty(TblMBankacc tblMBankacc) {
		this.id = tblMBankacc.getId();
		this.accCode = tblMBankacc.getAccCode();
		this.accNumber = tblMBankacc.getAccNumber();
		this.ownerName = tblMBankacc.getOwnerName();
		this.bankId = tblMBankacc.getBankId();
		this.countryId = tblMBankacc.getCountryId();
		this.currId = tblMBankacc.getCurrId();
	}
}